package com.example.novelsys.dao;


import com.example.novelsys.entity.Rates;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface RatesDao {
	

	
	//根据小说id查询该篇小说的评论们
	@Select("select * from rates where novelId=#{novelId} ")
	 public List<Rates> queryByNovelId(Integer novelId);
	 
	 
	 
	//根据小说id删除评论
	@Delete("delete from rates where novelId=#{novelId} ")
	public Integer deleteByNovelId(Integer novelId);
	
}
